package com.scrapy.http.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 糗事百科的笑话集
 * @author wanter
 *
 */
public class Joke implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8047307499625997709L;
	/**
	 * 评论区的评论的集合
	 */
	private List<Reply> replyList;
	/**
	 * 好笑的数量

	 */
	private int statsVote;

	/**
	 * 评论的条数
	 */
	private int dash;

	/**
	 * 主题帖的内容
	 */
	private String content;
	/**
	 * 主题帖发布的时间
	 */
	private Date date;
	/**
	 * 主题帖主人主页地址
	 */
	private String authorUrl;
	/**
	 * 贴的主人名字
	 */
	private String authorName;

	public Joke() {
	}

	public Joke(int statsVote, int dash, String content, Date date, String authorUrl, String authorName) {
		this.statsVote = statsVote;
		this.dash = dash;
		this.content = content;
		this.date = date;
		this.authorUrl = authorUrl;
		this.authorName = authorName;
	}

	public int getStatsVote() {
		return statsVote;
	}

	public void setStatsVote(int statsVote) {
		this.statsVote = statsVote;
	}

	public int getDash() {
		return dash;
	}

	public void setDash(int dash) {
		this.dash = dash;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getAuthorUrl() {
		return authorUrl;
	}

	public void setAuthorUrl(String authorUrl) {
		this.authorUrl = authorUrl;
	}

	public String getAuthorName() {
		return authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	public List<Reply> getReplyList() {
		return replyList;
	}

	public void setReplyList(List<Reply> replyList) {
		this.replyList = replyList;
	}

	@Override
	public String toString() {
		return "Joke{" +
				"replyList=" + replyList +
				", statsVote=" + statsVote +
				", dash=" + dash +
				", content='" + content + '\'' +
				", date=" + date +
				", authorUrl='" + authorUrl + '\'' +
				", authorName='" + authorName + '\'' +
				'}';
	}
}
